package com.yun2.bms.test;

import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/6/21
 */

public class T {
    public static void main(String args[]) {
        Set set = new TreeSet();
        set.add(new Integer(10));
        set.add(new Integer(5));
        set.add(new Integer(15));
        set.add(new Integer(5));
        set.add(new Integer(10));
        System.out.println("size = " + set.size());
        Iterator it = set.iterator();
        while (it.hasNext()) {
            System.out.print(it.next() + "   ");
        }
    }
}

